package cn.gcc.domain;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Code that Changed the World
 * Pro said
 * Created by Pro on 2017-07-26.
 */
@Component(value = "car")
public class Car {
    @Value(value = "兰博基尼")
    private String name;
    @Value(value = "蓝色")
    private String color;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "Car{" +
                "name='" + name + '\'' +
                ", color='" + color + '\'' +
                '}';
    }
}
